python program to count the lower and upper case characters in a string